package com.lkd.client.job;
import com.lkd.client.service.DataProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class VmJob {

    @Autowired
    private DataProcessService dataProcessService;

    /**
     * 发货状态上报补偿(每间隔1分钟)
     */
    @Scheduled(cron ="0 * * * * ?" )
    public void report() {
        dataProcessService.checkVendoutOrder();
    }


    /**
     * 发货状态上报补偿(每间隔2分钟)
     */
    @Scheduled(cron ="30 0/2 * * * ?" )
    public void checkStatus() {
        dataProcessService.checkStatus();
    }


}
